var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  
  //渲染index页面
    res.render('index', { title: 'Express' });
});


//测试 token 验证

// const JWT = require('../util/JWT')
// let token = JWT.generate({name: 'yun'}, '5s')
// console.log(JWT.verify(token))
// setTimeout(()=>{
//   console.log(JWT.verify(token))
// },6000)
module.exports = router;
